﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using FieldDevice;
using FieldDevice.Emulation;

namespace FieldDevice
{
    public partial class DataEmulatorForm : Form
    {

        public DataEmulatorForm(ushort address)
        {
            InitializeComponent();
 
             this.Address = address;
             this.Text += "Address:" + address;
        }

        private ushort Address;

        public String VA
        {
            get { return EmulatorVA.Text; }
            set {EmulatorVA.Text=value;
                    this.Refresh();
            }   
        }
        public string VB
        {
            get { return EmulatorVB.Text; }
            set
            {
                EmulatorVB.Text = value;
                this.Refresh();
            }
        }

        public string VC
        {
           get { return EmulatorVC.Text;}
           set 
           {
               EmulatorVC.Text=value;
                this.Refresh();
           }
        }

        public string IA
        {
            get { return EmulatorIA.Text; }
            set 
            {
                EmulatorIA.Text = value;
                this.Refresh();
            }

        }

        public string IB
        {
            get { return EmulatorIB.Text; }
            set
            {
                EmulatorIB.Text = value;
                this.Refresh();
            }

        }

        public string IC
        {
            get { return EmulatorIC.Text; }
            set
            {
                EmulatorIC.Text = value;
                this.Refresh();
            }

        }
            
    }
}
